﻿using ConfExpert.Datasets;
using ConfExpert.Forms.Base;
using DevTeam;
using System;
namespace ConfExpert.Utility
{
    public partial class AppSession : DevTeam.Session
    {
        public static int SirketId = 0;
        public static clsOncekiKonf OncekiKonf;
        public static clsOncekiYukleme OncekiYukleme;

        public static string BarkodEkle;
        public static string ScannerDeviceId;
        public static string InitialDirectory;

        public static int gleSeason, gleVendor, gleCustomer;


        public static string SonArama { get; set; }


        public class clsOncekiKonf
        {
            public string KonfNo;
            public DateTime KonfTarihi;
            public int CurrencyId;
            public int OdemeSekliId;
            public int OdemeTermini;
            public int TeslimSekliId;
            public int OngYuklemeSekliId;
            public int CarrierId;
        }

        public class clsOncekiYukleme
        {
            public DateTime YuklemeTarihi;
            public int AlisFaturasiId;
            public int YuklemeSekliId;
            public string IrsaliyeNo;
            public DateTime ETA;
        }

        public static string GateIP = "10.0.4.104";
        public static string SayimIP = "10.0.4.105";



        public static string UnspedUsername { get; set; }

        public static string UnspedPassword { get; set; }

        public static string BarsanUsername { get; set; }

        public static string BarsanPassword { get; set; }

        public static string DhlUsername { get; set; }

        public static string DhlPassword { get; set; }

        public static MyData Lookups
        {
            get
            {
                return RepositoryManager.dsLookups as MyData;
            }
        }

        public AppSession()
        {
            RepositoryManager.dsLookups = new MyData();
            repositoryManager = new RepositoryManager();
            repositoryManager.Mapping += repositoryManager_Mapping;
            repositoryManager.Initialize();

        }


        XForm x = new XForm();

        void repositoryManager_Mapping(DevExpress.XtraGrid.Columns.GridColumn col)
        {
            x.MapGridColumn(col);
        }
    }
}